<div class="col-md-4">
    <!-- /.progress-group -->
    <!-- Widget: user widget style 1 -->
    <div class="box box-widget widget-user-2">
        <!-- Add the bg color to the header using any of the bg-* classes -->
        <div class="widget-user-header bg-yellow">
            <div class="widget-user-image">
                <img class="img-circle" src="<?php echo $this->res('../avatars/'.$_SESSION["uid"].'.'.$_SESSION["avatars"]); ?>" alt="User Avatar">
            </div>
            <!-- /.widget-user-image -->
            <h3 class="widget-user-username"><?php echo $_SESSION['uname']; ?></h3>
            <h5 class="widget-user-desc"><?php echo $_SESSION['l']; ?></h5>
        </div>
        <div class="box-footer no-padding">
            <ul class="nav nav-stacked">
                <li><a href="#">已完成任务数量 <span class="pull-right badge bg-blue"><?php echo $data['Calendar_Y_Num']; ?></span></a></li>
                <li><a href="#">未完成任务数量 <span class="pull-right badge bg-aqua"><?php echo $data['Calendar_N_Num']; ?></span></a></li>
                <li><a href="#"><?php echo date('Y');?>年度 销售排名 <span class="pull-right badge bg-red"><?php echo $data['Wastebook_Rank_Y']; ?></span></a></li>
                <li><a href="#"><?php echo date('Y');?>年度销售额为 <span class=" badge bg-red"><?php echo $data['Y_Price']; ?></span> 元</a></li>
                <li><a href="#">本月销售额 <span class="pull-right badge bg-red"><?php echo $data['M_Price']; ?></span></a></li>
                <li><a href="#"><?php echo date('Y年m月');?> 销售排名 <span class="pull-right badge bg-red"><?php echo $data['Wastebook_Rank_M']; ?></span></a></li>
                <li><a href="#">你总共登录后台 <span class="badge bg-aqua"><?php echo $data['Loing_Num']; ?></span> 次<?php if($data['Loing_Num'] > 200){echo "，真是勤劳的小蜜蜂！";} ?></a></li>
            </ul>
        </div>
    </div>
    <!-- /.widget-user -->

    <p class="text-center">
        <strong>上传头像</strong>
    </p>

    <form enctype="multipart/form-data" method="post">
        <div class="info-box bg-green-active">
            <span class="pull-left info-box-icon"><i class="fa fa-cloud-upload"></i></span>
            <div class="info-box-content">
                <span class="info-box-text">上传你的头像</span>
                <span class="info-box-number"><input name="avatars" type="file" class="pull-left"></span>
                <input type="submit" class="btn btn-pinterest pull-right" value="上传">
                <span class="pull-left progress-description">
                    <?php echo isset($data ['waring']) ? $data ['waring'] :'' ?>

                </span>
            </div>
            <!-- /.info-box-content -->
        </div>
    </form>
</div>

<?php

    #上月提成
    $opc = $data['price_opc'] * 0.05;
    $ojk = $data['price_ojk'] * 0.03;
    $oqt = $data['price_oall'] * 0.08;
    $osum = $opc + $ojk + $oqt;

    #本月提成
    $pc = $data['price_pc'] * 0.05;
    $jk = $data['price_jk'] * 0.03;
    $qt = $data['price_all'] * 0.08;
    $sum = $pc + $jk + $qt;

?>
<div class="col-md-4">
    <div class="box box-primary collapsed-box">
        <div class="box-header with-border">
            <h3 class="box-title"><?php echo date("m") - 1; ?>月提成</h3>

            <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i>
                </button>
                <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
            </div>
        </div>
        <!-- /.box-header -->
        <div class="box-body" style="display: none;">
            <ul class="products-list product-list-in-box">
                <li class="item">
                    <div class="product-img">
                        <img src="<?php echo $this->res('styles/adminlte/2.3.0/dist/img/pc.jpg') ?>" alt="Product Image">
                    </div>
                    <div class="product-info">
                        <a href="javascript::;" class="product-title">电脑配件
                            <span class="label label-warning pull-right"><?php echo $opc; ?></span></a>
                        <span class="product-description">
                          包含了电脑配件、显卡、显示器、三大件
                        </span>
                    </div>
                </li>
                <!-- /.item -->
                <li class="item">
                    <div class="product-img">
                        <img src="<?php echo $this->res('styles/adminlte/2.3.0/dist/img/jk.jpg') ?>" alt="Product Image">
                    </div>
                    <div class="product-info">
                        <a href="javascript::;" class="product-title">监控
                            <span class="label label-info pull-right"><?php echo $ojk; ?></span></a>
                        <span class="product-description">
                          包含了监控配件
                        </span>
                    </div>
                </li>
                <!-- /.item -->
                <li class="item">
                    <div class="product-img">
                        <img src="<?php echo $this->res('styles/adminlte/2.3.0/dist/img/qt.jpg') ?>" alt="Product Image">
                    </div>
                    <div class="product-info">
                        <a href="javascript::;" class="product-title">其他 <span class="label label-danger pull-right"><?php echo $oqt; ?></span></a>
                        <span class="product-description">
                          包含了除了电脑配件、监控配件的所有商品
                        </span>
                    </div>
                </li>
                <!-- /.item -->
                <!-- /.item -->
            </ul>
        </div>
        <!-- /.box-body -->
        <div class="box-footer text-center">
            总提成：<?php echo $osum;?>
        </div>
        <!-- /.box-footer -->
    </div>

    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title">本月截止<?php echo date("d"); ?>日提成</h3>

            <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
                </button>
                <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
            </div>
        </div>
        <!-- /.box-header -->
        <div class="box-body" style="display: block;">
            <ul class="products-list product-list-in-box">
                <li class="item">
                    <div class="product-img">
                        <img src="<?php echo $this->res('styles/adminlte/2.3.0/dist/img/pc.jpg') ?>" alt="Product Image">
                    </div>
                    <div class="product-info">
                        <a href="javascript::;" class="product-title">电脑配件
                            <span class="label label-warning pull-right"><?php echo $pc; ?></span></a>
                        <span class="product-description">
                          包含了电脑配件、显卡、显示器、三大件
                        </span>
                    </div>
                </li>
                <!-- /.item -->
                <li class="item">
                    <div class="product-img">
                        <img src="<?php echo $this->res('styles/adminlte/2.3.0/dist/img/jk.jpg') ?>" alt="Product Image">
                    </div>
                    <div class="product-info">
                        <a href="javascript::;" class="product-title">监控
                            <span class="label label-info pull-right"><?php echo $jk; ?></span></a>
                        <span class="product-description">
                          包含了监控配件
                        </span>
                    </div>
                </li>
                <!-- /.item -->
                <li class="item">
                    <div class="product-img">
                        <img src="<?php echo $this->res('styles/adminlte/2.3.0/dist/img/qt.jpg') ?>" alt="Product Image">
                    </div>
                    <div class="product-info">
                        <a href="javascript::;" class="product-title">其他 <span class="label label-danger pull-right"><?php echo $qt; ?></span></a>
                        <span class="product-description">
                          包含了除了电脑配件、监控配件的所有商品
                        </span>
                    </div>
                </li>
                <!-- /.item -->
                <!-- /.item -->
            </ul>
        </div>
        <!-- /.box-body -->
        <div class="box-footer text-center">
            总提成：<?php echo $sum;?>
        </div>
        <!-- /.box-footer -->
    </div>

</div>